package demo;


import demo.standard.ConcreteComponent;
import demo.standard.IComponent;
import demo.standard.WrappedComponentA;
import demo.standard.WrappedComponentB;

public class ClientForStandard {

    public static void main(String[] args) {

        IComponent component = new ConcreteComponent();
        IComponent wrappedComponentA = new WrappedComponentA(component);
        IComponent wrappedComponentB = new WrappedComponentB(wrappedComponentA);

        wrappedComponentA.use();
        wrappedComponentB.use();
    }
}
